package com.hp.dao;

import com.hp.pojo.AgentVerification;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface AgentVerificationMapper {

    public int addVerification(AgentVerification agentVerification);

    public int delVerification(int userId);

    public List<AgentVerification> selectAllByUserId(int userId);

    //    map: {userId, fromId, toId, verificationStatus, houseId}
    public int updateVerification(Map map);

    public AgentVerification selectOne(AgentVerification agentVerification);

}
